import { BotToken, UserToken } from '@boticord/auth'
import {
  Bot,
  Resource,
  ResourceComment,
  Report,
  Server,
  ResourceUp, PendingBot, ResourceBoost, ChatMessage,
} from '@boticord/resources-client'
import { Badge, User, UserWebhook } from '@boticord/users-client'
import { Global, Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { SessionAnalytics, EventAnalytics } from '@boticord/analytics'

@Module({
  imports: [
    TypeOrmModule.forFeature([
      BotToken, 
      UserToken, 
      Bot,
      PendingBot,
      Server,
      ResourceComment,
      Resource,
      Badge, 
      User, 
      ResourceUp,
      Report,
      SessionAnalytics,
      EventAnalytics,
      ResourceBoost,
      ChatMessage,
      UserWebhook,
    ]),
  ],
  exports: [ TypeOrmModule ],
})
@Global()
export class TypeOrmModelsHost {}
